<template>
	<view>
		<page-head :title="'购买成功'" :headtype="1"></page-head>
		<image class="bg" :src="apifun.serveimg+'paysuccess.png'" mode=""></image>
		<image class="successicon" :src="apifun.serveimg+'paysuccessicon.png'" mode=""></image>
		<view class="sutitle">支付成功</view>
		<view class="sudoc">您的陪驾套餐购买成功</view>
		<view class="subtn marginAuto">
			<view class="subtneach marginAuto" style="background:#fff;" @click="kyuyue()">去预约</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				apifun:this.apifun
			};
		},
		onLoad() {
			
		},
		methods: {
			kyuyue(){
				uni.reLaunch({
					url:'/pages/my/mydriveryy'
				})
			}
		},
	};
</script>

<style scoped lang="scss">
	.bg{
		position: fixed;
		top: 0;
		left: 0;
		z-index:0;
		width: 100vw;
		height: 100vh;
	}
	.successicon{
		display: block;
		margin:180rpx auto 40rpx;
		width: 160rpx;
		height:160rpx;
	}
	.sutitle{
		position: relative;
		z-index: 10;
		color: #222222;
		font-size: 40rpx;
		text-align: center;
	}
	.sudoc{
		position: relative;
		z-index: 10;
		font-size: 24rpx;
		color: #666666;
		text-align: center;
		padding: 40rpx 0;
	}
	.subtn{
		position: relative;
		z-index: 10;
		width:70%;
		justify-content: space-between;
		.subtneach{
			width: 240rpx;
			height: 80rpx;
			line-height: 80rpx;
			text-align: center;
			border-radius: 100rpx;
			border: 1px solid #1686F8;
			color: #1686F8;
		}
	}
	
</style>